<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<p:dataTable var="weekly" value="#{weeklyModel.list}"
		filteredValue="#{weeklyModel.filteredList}" filterEvent="enter"
		rendered="#{weeklyModel.isInitialized}" paginator="true" rows="10"
		rowsPerPageTemplate="5,7,10,15,20,30,40,50"
		paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}">
		<f:facet name="header">List of Weekly</f:facet>
		<p:column style="width:10px">
			<p:selectBooleanCheckbox value="#{weekly.selected}">
				<ui:remove>
					<p:ajax event="change" process="@this"></p:ajax>
				</ui:remove>
			</p:selectBooleanCheckbox>
		</p:column>
		<p:column headerText="Year" sortBy="#{weekly.year}"
			filterBy="#{weekly.year}" filterMatchMode="contains">
			<h:outputText value="#{weekly.year}" />
		</p:column>
		<p:column headerText="Week" sortBy="#{weekly.weekOfYear}"
			filterBy="#{weekly.weekOfYear}" filterMatchMode="contains">
			<h:outputText value="#{weekly.weekOfYear}" />
		</p:column>
		<p:column headerText="Title" sortBy="#{weekly.titleLabel}"
			filterBy="#{weekly.titleLabel}" filterMatchMode="contains">
			<h:outputText value="#{weekly.titleLabel}" />
		</p:column>
	</p:dataTable>
</ui:composition>
</html>